package com.zmn.oms.persistence.interfaces.third;

import com.zmn.oms.model.entity.third.ZhimiExtendOrder;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: lhl
 * @create: 2020-04-28 18:51
 */
public interface ZhimiExtendOrderDao {

    ZhimiExtendOrder findByOrderId(@Param("orderId") Long orderId);

    ZhimiExtendOrder findMiniByOrderId(@Param("orderId") Long orderId);

    List<ZhimiExtendOrder> listByCreateTime(@Param("startTime")Date startTime, @Param("endTime")Date endTime);

    List<ZhimiExtendOrder> listNoExpressOrders(@Param("startTime")Date startTime);

    void save(ZhimiExtendOrder zhimiExtendOrder);

    void updateByKey(ZhimiExtendOrder zhimiExtendOrder);

    void updateServiceTypeByKey(ZhimiExtendOrder zhimiExtendOrder);
}
